package dancrawler.client;

import java.util.LinkedList;
import java.util.List;

/**
 * A tile on the map
 */
public class Tile extends GameObject {
    private LinkedList<GameObject> content;
    private int lastUpdated = 0;
    private int t;
    
    public Tile(int x, int y, String name, boolean block)
    {
        super(name, x, y, block);
        content = new LinkedList<>();
    }
    
   
    
    public int getLastUpdated() {
        return lastUpdated;
    }

    public void setLastUpdated(int lastUpdated) {
        this.lastUpdated = lastUpdated;
    }
    
    public void add(GameObject obj)
    {
        content.add(obj);
    }
    public void remove(GameObject obj)
    {
        content.remove(obj);
    }
    
    public List<GameObject> getContents()
    {
        return (List<GameObject>)content.clone();
    }
    public int getT()
    {
        return t;
    }
    public void setT(int t)
    {
        
    }
}
